package com.rdc.dictionary.search;

import android.content.Context;

import com.rdc.dictionary.bean.Word;
import com.rdc.dictionary.bean.WordSearch;
import com.rdc.dictionary.mvpBase.MvpView;
import com.rdc.dictionary.mvpPresenters.MvpPresenter;

/**
 * @author Soul Mate
 * @file 文件名
 * @brief 方法声明接口
 */

public class SearchActivityContact
{

	public interface IMainView extends MvpView
	{

		void show(Word word);

		void setSearchList();



	}

	public interface IMainPresenter extends MvpPresenter<IMainView>
	{
		//将一些逻辑处理的方法在此声明
		void init();

		void searchWord(String address);

		void playMP3(String s);

		void updateModel (Word word);

		boolean checkRepetition ();

		void saveMP3();

		void saveSearch(String search);

	}




	/*
	 *
	 * 回调方法用于数据获取成功和失败时调用
	 */
	public interface SearchCallback
	{
		void onSucc(Word w);

		void onFail();
	}


}
